package com.lagou;

import com.lagou.bean.Position;
import com.lagou.service.PositionService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.List;

@SpringBootApplication
public class ApplicationTest {
    public static void main(String[] args) {
        ApplicationContext  app = SpringApplication.run(ApplicationTest.class,args);
        PositionService positionService = app.getBean("positionService",PositionService.class);
//        Position position  = new Position("7.0","京东","产品经理","京东送美女","2k-20k");
//        positionService.addPosition(position);
//        List<Position>  books = positionService.queryPosition("companyName:京*");
//        System.out.println(books);
    }
}
